package com.sanerzone.smscenter.gateway.ums.comm.smgp3;

import com.sanerzone.smscenter.gateway.ums.comm.PMessage;
import com.sanerzone.smscenter.gateway.ums.comm.PWriter;
import com.sanerzone.smscenter.gateway.ums.comm.smgp3.message.SMGP3Message;

import java.io.IOException;
import java.io.OutputStream;

public class SMGP3Writer extends PWriter {

    protected OutputStream out;

    public SMGP3Writer(OutputStream out) {
        this.out = out;
    }

    public void write(PMessage message) throws IOException {
        SMGP3Message msg = (SMGP3Message) message;
        out.write(msg.getBytes());
    }

    public void writeHeartbeat() throws IOException {
    }
}
